package com.blindBox.front.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blindBox.front.dao_pojo.Paperchosebywho;
import com.blindBox.front.mapper.PaperchosebywhoMapper;
import com.blindBox.front.service.PaperchosebywhoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-11-02
 */
@Service
public class PaperchosebywhoServiceImpl extends ServiceImpl<PaperchosebywhoMapper, Paperchosebywho> implements PaperchosebywhoService {
@Autowired
private PaperchosebywhoMapper paperchosebywhoMapper;
    @Override
    public List<Map<Object, Object>> getUserPostAndChoseByOtherPaper(Integer u_id) {
        return paperchosebywhoMapper.getUserPostAndChoseByOtherPaper(u_id);
    }

    @Override
    public List<Map<Object, Object>> getUserGetPapers(Integer u_id) {
        return paperchosebywhoMapper.getUserGetPapers(u_id);
    }
}
